<%@ page language="java" import="java.util.*" pageEncoding="UTF-8" %>
<%
    String path = request.getContextPath();
    String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + path + "/";
%>

<!DOCTYPE html>
<html lang="en">
<head>
    <base href="<%=basePath%>">
    <meta charset="utf-8">
    <title>订牛奶管理系统</title>
    <meta content="IE=edge,chrome=1" http-equiv="X-UA-Compatible">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="description" content="">
    <meta name="author" content="">

    <link rel="stylesheet" href="/static/lib/bootstrap5.0.0/css/bootstrap.min.css">

    <link rel="stylesheet" type="text/css" href="/static/stylesheets/theme.css">
    <link rel="stylesheet" href="/static/lib/font-awesome/css/font-awesome.css">

    <script src="/static/lib/jquery-1.7.2.min.js" type="text/javascript"></script>
    <script src="/static/js/fenlei/fenleiUpdate.js" charset="UTF-8" type="text/javascript"></script>

    <!-- Demo page code -->

    <style type="text/css">
        #line-chart {
            height: 300px;
            width: 800px;
            margin: 0px auto;
            margin-top: 1em;
        }

        .brand {
            font-family: georgia, serif;
        }

        .brand .first {
            color: #ccc;
            font-style: italic;
        }

        .brand .second {
            color: #fff;
            font-weight: bold;
        }
    </style>
    <script language="javascript" type="text/javascript">

        function checkform() {

            if (document.getElementById("nameid").value == "") {

                alert('商品分类名不能为空');
                return false;
            }
            return true;

        }


    </script>


</head>

<body class="">

<%@ include file="../top.jsp" %>


<%@ include file="../left.jsp" %>


<div class="content">

    <div class="header">
        <h1 class="page-title">编辑</h1>
    </div>


    <div class="container-fluid">
        <div class="row-fluid">


            <div class="well">

                <div id="myTabContent" class="tab-content">
                    <div class="tab-pane active in" id="home">
                        <form id="tab" method="post" action="/" onsubmit="return checkform()">
                            <div class="row">
                                <input type="hidden" name="id" id="id" value="" class="input-xlarge">
                                <div class="col-md-12">
                                    <span for="name" class="fenlei">商品分类名</span>
                                    <input type="text" name="name" id="name" value="" class="form-control input-xlarge">
                                </div>
                                <div class="col-md-12" style="text-align: center;">
                                    <input type="button" class='btn btn-primary' onclick="update()" value="提交"/>
                                    <input type="button" class='btn btn-primary' value="返回" onclick="javascript:history.go(-1);"/>
                                </div>
                            </div>
                        </form>
                    </div>


                </div>

            </div>


        </div>
    </div>
</div>


<script src="/static/lib/bootstrap5.0.0/js/bootstrap.bundle.min.js"></script>
<script type="text/javascript">
    $("[rel=tooltip]").tooltip();
    $(function () {
        $('.demo-cancel-click').click(function () {
            return false;
        });
    });
</script>

</body>
</html>



